package com.unlcn.ils.kas.service.security.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;


/**
 * 使用BCrypt加密方式，无须外部程序提供salt
 * Created by qichao on 2017/11/29.
 */
@Configuration
public class PasswordEncoderConfig {
    public static BCryptPasswordEncoder passwordEncoder() {
        return new BCryptPasswordEncoder();
    }

}
